import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'ShouYe',
    component: () => import('@/views/shouYe.vue')
  },
  {
    path: '/ziXun',
    name: 'ZiXun',
    component: () => import('@/views/ziXun.vue'),
  },
  {
    path: '/xuanBiao',
    name: 'XuanBiao',
    component: () => import('@/views/xuanBiao.vue')
  },
  {
    path: '/order',
    name: 'Order',
    component: () => import('@/views/order.vue')
  },
  {
    path: '/my',
    name: 'My',
    component: () => import('../views/my.vue')
  },
  // 重定向
  {
    path:"/",
    redirect:"/"
  },
  {
    path: '/details',
    name: 'Details',
    component: () => import('../views/details.vue')
  },
  {
    path: '/details1:wjt',
    name: 'Details1',
    component: () => import('../views/details1.vue')
  },
  {
    path: '/see',
    name: 'See',
    component: () => import('../views/see.vue')
  }
]

const router = new VueRouter({
  base: process.env.BASE_URL,
  routes
})

export default router
